package com.whmall.service.crm.module.companycontact.impl.dao;

import com.whmall.service.crm.module.companycontact.entity.CompanyContactDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公司联系人Mapper
 *
 * @author alex
 * @since 2020/8/5
 */
@Mapper
public interface CompanyContactMapper {
    int deleteById(Long id);

    int insert(CompanyContactDO record);

    int insertSelective(CompanyContactDO record);

    int updateByIdSelective(CompanyContactDO record);

    int updateById(CompanyContactDO record);

    CompanyContactDO getById(Long id);

    List<CompanyContactDO> listByCompanyId(@Param("companyId") Long companyId);
}